package com.itcncp.ucenter.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ItcsRoadsectionInfoExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public ItcsRoadsectionInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRoadsectionIdIsNull() {
            addCriterion("roadsection_id is null");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdIsNotNull() {
            addCriterion("roadsection_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdEqualTo(String value) {
            addCriterion("roadsection_id =", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotEqualTo(String value) {
            addCriterion("roadsection_id <>", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdGreaterThan(String value) {
            addCriterion("roadsection_id >", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdGreaterThanOrEqualTo(String value) {
            addCriterion("roadsection_id >=", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdLessThan(String value) {
            addCriterion("roadsection_id <", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdLessThanOrEqualTo(String value) {
            addCriterion("roadsection_id <=", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdLike(String value) {
            addCriterion("roadsection_id like", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotLike(String value) {
            addCriterion("roadsection_id not like", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdIn(List<String> values) {
            addCriterion("roadsection_id in", values, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotIn(List<String> values) {
            addCriterion("roadsection_id not in", values, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdBetween(String value1, String value2) {
            addCriterion("roadsection_id between", value1, value2, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotBetween(String value1, String value2) {
            addCriterion("roadsection_id not between", value1, value2, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdIsNull() {
            addCriterion("road_owner_id is null");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdIsNotNull() {
            addCriterion("road_owner_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdEqualTo(String value) {
            addCriterion("road_owner_id =", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdNotEqualTo(String value) {
            addCriterion("road_owner_id <>", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdGreaterThan(String value) {
            addCriterion("road_owner_id >", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdGreaterThanOrEqualTo(String value) {
            addCriterion("road_owner_id >=", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdLessThan(String value) {
            addCriterion("road_owner_id <", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdLessThanOrEqualTo(String value) {
            addCriterion("road_owner_id <=", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdLike(String value) {
            addCriterion("road_owner_id like", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdNotLike(String value) {
            addCriterion("road_owner_id not like", value, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdIn(List<String> values) {
            addCriterion("road_owner_id in", values, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdNotIn(List<String> values) {
            addCriterion("road_owner_id not in", values, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdBetween(String value1, String value2) {
            addCriterion("road_owner_id between", value1, value2, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andRoadOwnerIdNotBetween(String value1, String value2) {
            addCriterion("road_owner_id not between", value1, value2, "roadOwnerId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdIsNull() {
            addCriterion("toll_road_id is null");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdIsNotNull() {
            addCriterion("toll_road_id is not null");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdEqualTo(String value) {
            addCriterion("toll_road_id =", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotEqualTo(String value) {
            addCriterion("toll_road_id <>", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdGreaterThan(String value) {
            addCriterion("toll_road_id >", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdGreaterThanOrEqualTo(String value) {
            addCriterion("toll_road_id >=", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdLessThan(String value) {
            addCriterion("toll_road_id <", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdLessThanOrEqualTo(String value) {
            addCriterion("toll_road_id <=", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdLike(String value) {
            addCriterion("toll_road_id like", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotLike(String value) {
            addCriterion("toll_road_id not like", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdIn(List<String> values) {
            addCriterion("toll_road_id in", values, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotIn(List<String> values) {
            addCriterion("toll_road_id not in", values, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdBetween(String value1, String value2) {
            addCriterion("toll_road_id between", value1, value2, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotBetween(String value1, String value2) {
            addCriterion("toll_road_id not between", value1, value2, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Byte value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Byte value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Byte value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Byte value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Byte value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Byte> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Byte> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Byte value1, Byte value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andMileageIsNull() {
            addCriterion("mileage is null");
            return (Criteria) this;
        }

        public Criteria andMileageIsNotNull() {
            addCriterion("mileage is not null");
            return (Criteria) this;
        }

        public Criteria andMileageEqualTo(Byte value) {
            addCriterion("mileage =", value, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageNotEqualTo(Byte value) {
            addCriterion("mileage <>", value, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageGreaterThan(Byte value) {
            addCriterion("mileage >", value, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageGreaterThanOrEqualTo(Byte value) {
            addCriterion("mileage >=", value, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageLessThan(Byte value) {
            addCriterion("mileage <", value, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageLessThanOrEqualTo(Byte value) {
            addCriterion("mileage <=", value, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageIn(List<Byte> values) {
            addCriterion("mileage in", values, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageNotIn(List<Byte> values) {
            addCriterion("mileage not in", values, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageBetween(Byte value1, Byte value2) {
            addCriterion("mileage between", value1, value2, "mileage");
            return (Criteria) this;
        }

        public Criteria andMileageNotBetween(Byte value1, Byte value2) {
            addCriterion("mileage not between", value1, value2, "mileage");
            return (Criteria) this;
        }

        public Criteria andChargeTypeIsNull() {
            addCriterion("charge_type is null");
            return (Criteria) this;
        }

        public Criteria andChargeTypeIsNotNull() {
            addCriterion("charge_type is not null");
            return (Criteria) this;
        }

        public Criteria andChargeTypeEqualTo(Byte value) {
            addCriterion("charge_type =", value, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeNotEqualTo(Byte value) {
            addCriterion("charge_type <>", value, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeGreaterThan(Byte value) {
            addCriterion("charge_type >", value, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("charge_type >=", value, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeLessThan(Byte value) {
            addCriterion("charge_type <", value, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeLessThanOrEqualTo(Byte value) {
            addCriterion("charge_type <=", value, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeIn(List<Byte> values) {
            addCriterion("charge_type in", values, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeNotIn(List<Byte> values) {
            addCriterion("charge_type not in", values, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeBetween(Byte value1, Byte value2) {
            addCriterion("charge_type between", value1, value2, "chargeType");
            return (Criteria) this;
        }

        public Criteria andChargeTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("charge_type not between", value1, value2, "chargeType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}